Skip to content

Instantly share code, notes, and snippets.

@OlegIlyenko
OlegIlyenko / Event-stream based GraphQL subscriptions.md
Last active May 16, 2024 02:05
Event-stream based GraphQL subscriptions for real-time updates

In this gist I would like to describe an idea for GraphQL subscriptions. It was inspired by conversations about subscriptions in the GraphQL slack channel and different GH issues, like #89 and #411.

Conceptual Model

At the moment GraphQL allows 2 types of queries:

  • query
  • mutation

Reference implementation also adds the third type: subscription. It does not have any semantics yet, so here I would like to propose one possible semantics interpretation and the reasoning behind it.

@staticor
staticor / Jenkinsfile
Created May 16, 2024 02:03 — forked from SGTMcClain/Jenkinsfile
Find Jenkins Build cause
#!/usr/bin/env groovy
import hudson.model.*
import hudson.EnvVars
import groovy.json.JsonSlurperClassic
import groovy.json.JsonBuilder
import groovy.json.JsonOutput
import java.net.URL
@SGTMcClain
SGTMcClain / Jenkinsfile
Last active May 16, 2024 02:03
Find Jenkins Build cause
#!/usr/bin/env groovy
import hudson.model.*
import hudson.EnvVars
import groovy.json.JsonSlurperClassic
import groovy.json.JsonBuilder
import groovy.json.JsonOutput
import java.net.URL
@sevynkooper
sevynkooper / windows-11-keys.md
Last active May 16, 2024 02:03 — forked from Esaqe/windows-keys.md
Windows 11 Product Keys

NOTE

These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.

Where to buy windows 11 pro keys?

To get Windows Keys go to : https://www.sftkey.com

if you need a Windows 11 Pro key, this is the direct link to get it :

@tayvano
tayvano / gist:6e2d456a9897f55025e25035478a3a50
Created February 19, 2017 05:29
complete list of ffmpeg flags / commands
Originall From: Posted 2015-05-29 http://ubwg.net/b/full-list-of-ffmpeg-flags-and-options
This is the complete list that’s outputted by ffmpeg when running ffmpeg -h full.
usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}…
Getting help:
-h — print basic options
-h long — print more options
-h full — print all options (including all format and codec specific options, very long)
from tinydb import TinyDB
# Disk storage
db = TinyDB('data.json')
# Memory storage
from tinydb.storages import MemoryStorage, Storage
db = TinyDB(storage=MemoryStorage)
@jesstess
jesstess / ELF_strings
Created February 18, 2012 21:36
Where in an ELF executable do various types of strings live?
Where in an ELF executable do various types of strings live?
Inspired by "How to waste a lot of space without knowing": http://glandium.org/blog/?p=2361
Test file:
$ cat /tmp/test.c
char *ptr_global = "ptr_global_string";
char array_global[] = "array_global_string";
@tomkail
tomkail / ExtendedScriptableObjectDrawer.cs
Last active May 16, 2024 01:54
Displays the fields of a ScriptableObject in the inspector
// Developed by Tom Kail at Inkle
// Released under the MIT Licence as held at https://opensource.org/licenses/MIT
// Must be placed within a folder named "Editor"
using System;
using System.Reflection;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
@anuragkapur
anuragkapur / fastly-latency-testing.sh
Last active May 16, 2024 01:52
Fastly latency compared to AWS API gateway
################
# Test script
################
#!/bin/bash
echo "fastlyTime,awsGatewayTime" >> responsetimes.log
while true
do
fastlyTime=`curl -o /dev/null -s -w %{time_total} -H 'X-Api-Key: 8Glz7vn2pM47AzzKmrXDU82h3S0Iud9n7wDgp3wM' https://round-trippa.ft.com/callback`
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active May 16, 2024 01:52
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k